package org.xjtu.weteam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.xjtu.weteam.model.domain.Dictionary;
import org.xjtu.weteam.model.domain.Info;
import org.xjtu.weteam.model.dto.InfoDTO;

import java.util.List;

/**
 * @author Kevin
 */

@Mapper
public interface InfoMapper extends BaseMapper<Info> {


    List<Info> selectInfoByUserId(@Param("userId") Integer userId);

    Integer haveReadMessage(@Param("id") Integer id);

    Integer removeInfoById(@Param("id") Integer id);

    Integer sendMessage(@Param("title") String title,@Param("note") String note,@Param("userId") Integer userId);
}
